package mysql

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30); not null;comment:'物品标题'"`
	ClassId int    `gorm:"type:int(11); not null;comment:'分类Id'"`
	BrandId int    `gorm:"type:int(11); not null;comment:'品牌Id'"`
}
type Brand struct {
	gorm.Model
	Name string `gorm:"type:varchar(30); not null;comment:'品牌名称'"`
}
type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30); not null;comment:'分类名称'"`
}
type GoodClassBrand struct {
	Good
	ClassName string
	BrandName string
}
